package com.system.service.impl;

import com.system.mapper.InformationMapper;
import com.system.po.info.Information;
import com.system.service.InformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InformationServiceImpl implements InformationService {
    @Autowired
    private InformationMapper informationMapper;
    @Override
    public boolean addInformation(Information information) {

        return informationMapper.addInformation(information);
    }

    @Override
    public Information addInformationAndReturnId(Information information) {

        return informationMapper.addInformationAndReturnId(information);
    }

    @Override
    public boolean updateInformation(Information information) {

        return informationMapper.updateInformation(information);
    }

    @Override
    public Information selectInformationById(Integer id) {
        return informationMapper.selectInformationById(id);
    }
}
